<@_homeCommentList siteId=siteId userId=userId
            itemType=itemType itemId=itemId disabled=disabled
            orderType=orderType pageIndex=pageNum count=numPerPage>
<div class="pageHeader">
	<form id="pagerForm" onsubmit="return navTabSearch(this);" method="post">
		<#include "../include_page/paramters.html"/>
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label>站点：</label>
					<input type="text" name="siteId" value="${siteId!}" />
				</li>
				<li>
					<label>用户：</label>
					<input type="text" name="userId" value="${userId!}" />
				</li>
				<li>
					<label>项目类型：</label>
					<input type="text" name="itemType" value="${itemType!}" />
				</li>
				<li>
					<label>项目ID：</label>
					<input type="text" name="itemId" value="${itemId!}" />
				</li>
				<li>
					<label>已禁用：</label>
					<input type="text" name="disabled" value="${disabled!}" />
				</li>
			</ul>
			<div class="subBar">
				<ul>
					<li><button type="submit" class="buttonActive">搜索</button></li>
				</ul>
			</div>
		</div>
	</form>
</div>
<@_sysAuthorized roleIds=admin.roles urls='homeComment/add,homeComment/delete'><#assign authorizedMap=map/></@_sysAuthorized>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
		<#if authorizedMap['homeComment/add']>
			<li><a href="homeComment/add.html" target="navTab" rel="homeComment/add"><i class="icon-plus-sign-alt icon-large"></i> 添加</a></li>
			<li><a href="homeComment/add.html?id={sid}" target="navTab" rel="homeComment/edit"><i class="icon-edit icon-large"></i> 修改</a></li>
		</#if>
		<#if authorizedMap['homeComment/delete']>
			<li><a href="homeComment/delete.do" title="确定要删除该些记录吗?" target="selectedTodo" rel="ids"><i class="icon-trash icon-large"></i> 批量删除</a></li>
		</#if>
		</ul>
	</div>
	<table class="list" width="100%" layoutH="92">
		<thead>
			<tr>
				<th>ID</th>
				<th>站点</th>
				<th>用户</th>
				<th>项目类型</th>
				<th>项目ID</th>
				<th>分数</th>
				<th orderField="createDate" class="<#if orderField??&&'createDate'==orderField><#if 'asc'=orderType>asc<#else>desc</#if><#else>order</#if>">日期</th>
				<th>已禁用</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<#list page.list as a>
			<tr target="sid" rel="${a.id}">
				<td>${a.id!}</td>
				<td>${a.siteId!}</td>
				<td>${a.userId!}</td>
				<td>${a.itemType!}</td>
				<td>${a.itemId!}</td>
				<td>${a.scores!}</td>
				<td>${a.createDate!}</td>
				<td>${a.disabled!}</td>
				<td>
				<#if authorizedMap['homeComment/delete']>
					<a href="homeComment/delete.do?ids=${a.id}" title="确定要删除这条记录么?" target="ajaxTodo">删除</a>
				</#if>
				</td>
			</tr>
			</#list>
		</tbody>
	</table>
	<#include "../include_page/page.html"/>
</div>
</@_homeCommentList>